<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>display: table</title>

    <style>
        div div {
            width: 100px;
            height: 100px;
            background-color: #ddd;
            margin: 10px;
            border: 1px solid #ccc;
            vertical-align: middle;
        }

        .table {
            display: table;
        }

        .cell {
            display: table-cell;
        }
    </style>
</head>
<body>
    <div>
        <div>单元格1</div>
        <div>单元格2</div>
        <div>单元格3</div>
    </div>
    <div class="table">
        <div class="cell">单元格1</div>
        <div class="cell">单元格2</div>
        <div class="cell">单元格3</div>
    </div>
</body>
</html>